﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using Word = Microsoft.Office.Interop.Word;

namespace COM_Interop
{
    class Program
    {
        static void Main(string[] args)
        {
            // Abre um ficheiro no Word
            var word = new Word.Application();
            word.Visible = true;

            string fileName = Path.Combine(
                Environment.CurrentDirectory, "NetPonto.docx");

            Word.Document document = word.Documents.Open(
                fileName, ReadOnly: false);
        }
    }
}
